package com.leen.user.entity;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;

import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author 
 * 用户地址表
 */
@Table(name="yx_user_address")
@Data
@Entity
@ApiModel(value = "用户地址表")
public class YxUserAddress implements Serializable {
    /**
     * 用户地址id
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    @ApiModelProperty(value = "用户地址id")
    private Long id;

    /**
     * 用户id
     */
    @Column(name = "uid")
    @ApiModelProperty(value = "用户id")
    private Long uid;

    /**
     * 收货人姓名
     */
    @Column(name = "real_name")
    @ApiModelProperty(value = "收货人姓名")
    private String realName;

    /**
     * 收货人电话
     */
    @Column(name = "phone")
    @ApiModelProperty(value = "收货人电话")
    private String phone;

    /**
     * 收货人所在省
     */
    @Column(name = "province")
    @ApiModelProperty(value = "收货人所在省")
    private String province;

    /**
     * 收货人所在市
     */
    @Column(name = "city")
    @ApiModelProperty(value = "收货人所在市")
    private String city;

    /**
     * 城市id
     */
    @Column(name = "city_id")
    @ApiModelProperty(value = "城市id",example = "0")
    private Integer cityId;

    /**
     * 收货人所在区
     */
    @Column(name = "district")
    @ApiModelProperty(value = "收货人所在区")
    private String district;

    /**
     * 收货人详细地址
     */
    @Column(name = "detail")
    @ApiModelProperty(value = "收货人详细地址")
    private String detail;

    /**
     * 邮编
     */
    @Column(name = "post_code")
    @ApiModelProperty(value = "邮编")
    private String postCode;

    /**
     * 经度
     */
    @Column(name = "longitude")
    @ApiModelProperty(value = "经度")
    private String longitude;

    /**
     * 纬度
     */
    @Column(name = "latitude")
    @ApiModelProperty(value = "纬度")
    private String latitude;

    /**
     * 是否默认
     */
    @Column(name = "is_default")
    @ApiModelProperty(value = "是否默认")
    private Byte defaul;

    /**
     * 是否删除
     */
    @Column(name = "is_del")
    @ApiModelProperty(value = "是否删除")
    private Byte del;

    /**
     * 添加时间
     */
    @Column(name = "create_time")
    @ApiModelProperty(value = "添加时间")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 更新时间
     */
    @Column(name = "update_time")
    @ApiModelProperty(value = "更新时间")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;


}